<template>
  新闻页 {{$route.params.id}}
</template>

<script>
// import {onMounted} from 'vue'
export default {
  name: "News",
  setup(){
    // onMounted(()=>{
    //   console.log(this.$router)
    // });
  },
  mounted() {
    console.log(this.$route)
    console.log(this.$route.params.id)
  }
}
</script>

<style scoped>

</style>